package com.practice.ajCollections010.list.linkedlist;

import java.util.LinkedList;
import java.util.concurrent.atomic.AtomicLong;

/**
 * LinkedList 边界问题:
 *     在 JVM 内存足够的情况下，LinkedList 的最小长度为 0，最大长度无限制
 */
public class Border {

    private final AtomicLong counter = new AtomicLong();

    public static void main(String[] args) {
        LinkedList<String> list = new LinkedList<>();
        for (int i = 0; i < Integer.MAX_VALUE; i++) {
            System.out.println(i);
            list.add(Integer.toString(i));
        }
    }
}
